#include <my_head.h>
void sig_func(int signum){
    printf("bejing\n");
}
int main(int argc, const char *argv[]){
    if(SIG_ERR == signal(SIGINT,sig_func))
        ERR_LOG("signal error");
    int i = 0;
    while(1){
        printf("hello %d\n",++i);
        sleep(1);
    }
    return 0;
}